<html>

<head>
<link rel="stylesheet" type="text/css" href="../../doc.css" />
<style type="text/css">
.auto-style1 {
	border-style: solid;
	border-width: 1px;
}
</style>
</head>

<body>
<h1><u>Utilities</u></h1>
<p><strong>Purpose: </strong>A general purpose utility class containing useful 
and frequently used static methods.</p>
<hr>
<p><strong>Procedure Name:</strong> IntToBinary<br><strong>Description:</strong> Converts an integer to binary 
with the appropriate width<br><strong>Specification reference codes:</strong><br><strong>Calling Sequence</strong><br>	
<strong>Input Parameters:</strong> int i - the integer value to be converted to binary<br>int width - the number of bits wide the binary string should be<br><strong>Output 
Parameters: </strong>String - the resulting binary number as a String<br><br><strong>Error Conditions Tested:</strong> 
none<br><strong>Error Messages Generated:</strong> none<br>
<strong>Original Author:</strong> Kyle<br><strong>Procedure Creation Date:</strong> 4/10/2011<br><strong>Modification Log:</strong><br>
<table class="auto-style1" style="width: 100%">
	<tr>
		<td style="width: 74px"><strong>Who</strong></td>
		<td style="width: 99px"><strong>When</strong></td>
		<td style="width: 300px">W<strong>hy</strong></td>
	</tr>
	<tr>
		<td style="width: 74px">Kyle</td>
		<td style="width: 99px">4/10/2001</td>
		<td style="width: 300px">Created</td>
	</tr>
	<tr>
		<td style="width: 74px">&nbsp;</td>
		<td style="width: 99px">&nbsp;</td>
		<td style="width: 300px">&nbsp;</td>
	</tr>
</table>
<br><br><strong>Coding Standards Met:</strong> Signed-Kyle<br><strong>Testing Standards Met:</strong> Signed-Aditya</p>
<hr>
<p><strong>Procedure Name:</strong> IntTo4Hex<br><strong>Description:</strong> Converts an integer to a 4 digit 
hex string (correct error in java built in with negative numbers)<br><strong>Specification reference codes:</strong><br><strong>Calling Sequence</strong><br>	
<strong>Input Parameters:</strong> int i - the integer value to be converted to hex<br>Output 
Parameters: </strong>String - the resulting hex number as a String<br><br><strong>Error Conditions Tested:</strong> 
none<br><strong>Error Messages Generated:</strong> none<br>
<strong>Original Author:</strong> Kyle<br><strong>Procedure Creation Date:</strong> 5/14/2011<br><strong>Modification Log:</strong><br>
<table class="auto-style1" style="width: 100%">
	<tr>
		<td style="width: 74px"><strong>Who</strong></td>
		<td style="width: 99px"><strong>When</strong></td>
		<td style="width: 300px">W<strong>hy</strong></td>
	</tr>
	<tr>
		<td style="width: 74px">Kyle</td>
		<td style="width: 99px">5/14/2001</td>
		<td style="width: 300px">Created</td>
	</tr>
	<tr>
		<td style="width: 74px">&nbsp;</td>
		<td style="width: 99px">&nbsp;</td>
		<td style="width: 300px">&nbsp;</td>
	</tr>
</table>
<br><br><strong>Coding Standards Met:</strong> Signed-Kyle<br><strong>Testing Standards Met:</strong> Signed-Aditya</p>
<hr>
<p><strong>Procedure Name:</strong> ParseInteger<br><strong>Description:</strong> parses a string into an integer<br><strong>Specification reference codes:</strong><br><strong>Calling Sequence</strong><br>	
<strong>Input Parameters:</strong> String s - integer to be parsed<br><strong>Output 
Parameters: </strong>int - integer result<br><br><strong>Error Conditions Tested:</strong> 
none<br><strong>Error Messages Generated:</strong> none<br>
<strong>Original Author:</strong> Kyle<br><strong>Procedure Creation Date:</strong> 5/7/2011<br><strong>Modification Log:</strong><br>
<table class="auto-style1" style="width: 100%">
	<tr>
		<td style="width: 74px"><strong>Who</strong></td>
		<td style="width: 99px"><strong>When</strong></td>
		<td style="width: 300px">W<strong>hy</strong></td>
	</tr>
	<tr>
		<td style="width: 74px">Kyle</td>
		<td style="width: 99px">5/7/2001</td>
		<td style="width: 300px">Created</td>
	</tr>
	<tr>
		<td style="width: 74px">&nbsp;</td>
		<td style="width: 99px">&nbsp;</td>
		<td style="width: 300px">&nbsp;</td>
	</tr>
</table>
<br><br><strong>Coding Standards Met:</strong> Signed-Kyle<br><strong>Testing Standards Met:</strong> Signed-Aditya<br></p>
<hr>
<p><strong>Procedure Name:</strong> ValidateLiteral<br><strong>Description:</strong> Validates literal according to syntax rules<br><strong>Specification reference codes:</strong><br><strong>Calling Sequence</strong><br>	
<strong>Input Parameters:</strong> String literal - literal string to be checked<br><strong>Output 
Parameters: </strong>Boolean - whether or not String is a literal<br><br><strong>Error Conditions Tested:</strong> 
validates literals<br><strong>Error Messages Generated:</strong> none<br>
<strong>Original Author:</strong> Kevin<br><strong>Procedure Creation Date:</strong> 4/19/2011<br><strong>Modification Log:</strong><br>
<table class="auto-style1" style="width: 100%">
	<tr>
		<td style="width: 74px"><strong>Who</strong></td>
		<td style="width: 99px"><strong>When</strong></td>
		<td style="width: 300px">W<strong>hy</strong></td>
	</tr>
	<tr>
		<td style="width: 74px">Kevin</td>
		<td style="width: 99px">4/19/2001</td>
		<td style="width: 300px">Created</td>
	</tr>
	<tr>
		<td style="width: 74px">&nbsp;</td>
		<td style="width: 99px">&nbsp;</td>
		<td style="width: 300px">&nbsp;</td>
	</tr>
</table>
<br><br><strong>Coding Standards Met:</strong> Signed-Kyle<br><strong>Testing Standards Met:</strong> Signed-Aditya</p>
<hr>
<p><strong>Procedure Name:</strong> EvaluateLiteral<br><strong>Description:</strong> Evaluates literals<br><strong>Specification reference codes:</strong><br><strong>Calling Sequence</strong><br>	
<strong>Input Parameters:</strong> String literal - literal to be evaluated<br><strong>Output 
Parameters: </strong>int - final evaluation of the literal<br><br><strong>Error Conditions 
Tested: </strong>none<br><strong>Error Messages Generated:</strong> none<br>
<strong>Original Author:</strong> Kyle<br><strong>Procedure Creation Date:</strong> 5/7/2011<br><strong>Modification Log:</strong><br>
<table class="auto-style1" style="width: 100%">
	<tr>
		<td style="width: 74px"><strong>Who</strong></td>
		<td style="width: 99px"><strong>When</strong></td>
		<td style="width: 300px">W<strong>hy</strong></td>
	</tr>
	<tr>
		<td style="width: 74px">Kyle</td>
		<td style="width: 99px">5/7/2001</td>
		<td style="width: 300px">Created</td>
	</tr>
	<tr>
		<td style="width: 74px">&nbsp;</td>
		<td style="width: 99px">&nbsp;</td>
		<td style="width: 300px">&nbsp;</td>
	</tr>
</table>
<br><br><strong>Coding Standards Met:</strong> Signed-Kyle<br><strong>Testing Standards Met:</strong> Signed-Aditya</p>
<hr>
<p><strong>Procedure Name:</strong> ValidateLabel<br><strong>Description:</strong> Validates label according to syntax rules<br><strong>Specification reference codes:</strong><br><strong>Calling Sequence</strong><br>	
<strong>Input Parameters:</strong> String label - label string to be checked<br><strong>Output 
Parameters: </strong>Boolean - whether or not String is a label<br><br><strong>Error Conditions Tested:</strong> 
validates labels<br><strong>Error Messages Generated:</strong> none<br>
<strong>Original Author:</strong> Kevin<br><strong>Procedure Creation Date:</strong> 4/19/2011<br><strong>Modification Log:</strong><br>
<table class="auto-style1" style="width: 100%">
	<tr>
		<td style="width: 74px"><strong>Who</strong></td>
		<td style="width: 99px"><strong>When</strong></td>
		<td style="width: 300px">W<strong>hy</strong></td>
	</tr>
	<tr>
		<td style="width: 74px">Kevin</td>
		<td style="width: 99px">4/19/2001</td>
		<td style="width: 300px">Created</td>
	</tr>
	<tr>
		<td style="width: 74px">&nbsp;</td>
		<td style="width: 99px">&nbsp;</td>
		<td style="width: 300px">&nbsp;</td>
	</tr>
</table>
<br><br><strong>Coding Standards Met:</strong> Signed-Kyle<br><strong>Testing Standards Met:</strong> Signed-Aditya</p>
<hr>
<p><strong>Procedure Name:</strong> ValidateIntRange<br><strong>Description:</strong> Validates integer range according to min and max<br><strong>Specification reference codes:</strong><br><strong>Calling Sequence</strong><br>	
<strong>Input Parameters:</strong> String value - value to be tested<br>int min - lower bound<br>int max - upper bound<br><br>	
<strong>Output Parameters:</strong> Boolean - whether or not range is valid<br><br><strong>Error Conditions Tested:</strong><br><strong>Error Messages Generated:</strong><br>
<strong>Original Author:</strong> Kevin<br><strong>Procedure Creation Date:</strong> 4/19/2011<br><strong>Modification Log:</strong><br>
<table class="auto-style1" style="width: 100%">
	<tr>
		<td style="width: 74px"><strong>Who</strong></td>
		<td style="width: 99px"><strong>When</strong></td>
		<td style="width: 300px">W<strong>hy</strong></td>
	</tr>
	<tr>
		<td style="width: 74px">Kevin</td>
		<td style="width: 99px">4/19/2001</td>
		<td style="width: 300px">Created</td>
	</tr>
	<tr>
		<td style="width: 74px">&nbsp;</td>
		<td style="width: 99px">&nbsp;</td>
		<td style="width: 300px">&nbsp;</td>
	</tr>
</table>
<br><br><strong>Coding Standards Met:</strong> Signed-Kyle<br><strong>Testing Standards Met:</strong> Signed-Aditya</p>
<hr>
<p><strong>Procedure Name:</strong> ValidateHexRange<br><strong>Description:</strong> Validates Hex range according to min and max<br><strong>Specification reference codes:</strong><br><strong>Calling Sequence</strong><br>	
<strong>Input Parameters:</strong> String value - value to be tested<br>int min - lower bound<br>int max - upper bound<br><br>	
<strong>Output Parameters:</strong> Boolean - whether or not range is valid<br><br><strong>Error Conditions Tested:</strong><br><strong>Error Messages Generated:</strong><br>
<strong>Original Author:</strong> Kyle<br><strong>Procedure Creation Date:</strong> 5/7/2011<br><strong>Modification Log:</strong><br>
<table class="auto-style1" style="width: 100%">
	<tr>
		<td style="width: 74px"><strong>Who</strong></td>
		<td style="width: 99px"><strong>When</strong></td>
		<td style="width: 300px">W<strong>hy</strong></td>
	</tr>
	<tr>
		<td style="width: 74px">Kyle</td>
		<td style="width: 99px">5/7/2001</td>
		<td style="width: 300px">Created</td>
	</tr>
	<tr>
		<td style="width: 74px">&nbsp;</td>
		<td style="width: 99px">&nbsp;</td>
		<td style="width: 300px">&nbsp;</td>
	</tr>
</table>
<br><br><strong>Coding Standards Met:</strong> Signed-Kyle<br><strong>Testing Standards Met:</strong> Signed-Aditya</p>
<hr>
<p><strong>Procedure Name:</strong> ValidateBinaryRange<br><strong>Description:</strong> Validates Binary range according to min and max<br><strong>Specification reference codes:</strong><br><strong>Calling Sequence</strong><br>	
<strong>Input Parameters:</strong> String value - value to be tested<br>int min - lower bound<br>int max - upper bound<br><br>	
<strong>Output Parameters:</strong> Boolean - whether or not range is valid<br><br><strong>Error Conditions Tested:</strong><br><strong>Error Messages Generated:</strong><br>
<strong>Original Author:</strong> Kyle<br><strong>Procedure Creation Date:</strong> 5/7/2011<br><strong>Modification Log:</strong><br>
<table class="auto-style1" style="width: 100%">
	<tr>
		<td style="width: 74px"><strong>Who</strong></td>
		<td style="width: 99px"><strong>When</strong></td>
		<td style="width: 300px">W<strong>hy</strong></td>
	</tr>
	<tr>
		<td style="width: 74px">Kyle</td>
		<td style="width: 99px">5/7/2001</td>
		<td style="width: 300px">Created</td>
	</tr>
	<tr>
		<td style="width: 74px">&nbsp;</td>
		<td style="width: 99px">&nbsp;</td>
		<td style="width: 300px">&nbsp;</td>
	</tr>
</table>
<br><br><strong>Coding Standards Met:</strong> Signed-Kyle<br><strong>Testing Standards Met:</strong> Signed-Aditya</p>
<hr>
</body>
</html>
